<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/static/include/topLess.jsp"%>
<script>document.title="核算指标详情";</script>
<script src="${baseURL}/static/js/jquery.easyui.min.js"></script>
<link href="${baseURL}/static/js/themes/default/easyui.css" rel="stylesheet" type="text/css" />

<style type="text/css">
<!--
table {
	margin:0;
	width:0;
	font-family:"微软雅黑";
	font-size:12px;
	color: #FFF;
	border-collapse: collapse;
}
//-->
</style>
<div id="context">
<table id="search_t" style="width:98%">
		<tbody>
			<tr>
				<th><img src="${ctx}/static/images/pages/cen/rig/ico_01.png" align="middle">&nbsp;核算公式
				</th>
			</tr>
			<tr class="tab_grey">
				<td id="gs"><c:if test="${not empty obj}">${obj[(fn:length(obj)-1)].indicatorSource}</c:if></td>
			</tr>
		</tbody>
</table>
<br/>
<div id="dataList" style="overflow:auto;width:98%">
<table id="dg" class="easyui-datagrid" style="width:auto;height:auto"   
        data-options="fitColumns:true,singleSelect:true,rownumbers:true">   
    <thead>   
        <tr>
            <th data-options="field:'indicatorName',width:150">指标名称</th>   
            <th data-options="field:'indicatorType',width:50,align:'left'">指标类型</th>
            <th data-options="field:'indicatorSource',width:200,align:'left'">数据来源</th>
            <th data-options="field:'indicatorValue',width:50,align:'right'">指标值</th>
            <th data-options="field:'indicatorUnit',width:50,align:'right'">指标单位</th>
        </tr>   
    </thead>
    <tbody>
    <c:forEach items="${obj}" var="indicatorVo">
    	<tr>
    		<td>${indicatorVo.indicatorName}</td>
    		<td>${indicatorVo.indicatorType}</td>
    		<td>${indicatorVo.indicatorSource}</td>
    		<td>${indicatorVo.indicatorValue}</td>
    		<td>${indicatorVo.indicatorUnit}</td>
    	</tr>
    </c:forEach>
    </tbody>
</table>
</div>
<script language="javaScript">

	$(function(){
		$('#dg').datagrid({
			rowStyler: function(index,row){
				if ((index+1)=="${fn:length(obj)}"){
					return 'background-color:#FFA62F;color:#000000;';
				}
			},
			onSelect: function(rowIndex, rowData){
				$("#gs").html("${obj[(fn:length(obj)-1)].indicatorSource}".replace(rowData.indicatorName, "<B><font color='red'>" + rowData.indicatorName + "</font></B>"));
			}
		});
	});
</script>




<%@ include file="/static/include/bottom.jsp"%>